#ifndef OBJGROUP_H
#define OBJGROUP_H

#include "Facet.h"
#include "Material.h"

namespace prog3d {

class Facet;
class AFacet;

class ObjGroup {
  std::string _name;
  Material *_material;
  AFacet vf;
  bool _active;

  public:
    ObjGroup();
    ObjGroup(std::string n);

    void material(Material *m);
    Material *material();

    void name(std::string s);
    std::string name();

    void enable();
    void disable();

    void setGL(unsigned int drawMode);

    int nbFace();

    void addFacet(Facet *f);

    void draw(unsigned int drawMode);


    virtual ~ObjGroup();
  protected:
  private:
};

typedef Array<ObjGroup> AObjGroup;

}

#endif // OBJCOMPONENT_H
